import ITheme from '@/api/entity/ITheme';
import IThemeModifyVars from '@/api/entity/IThemeModifyVars';
export default class ThemeConfig {
    public getTheme(): Array<ITheme> {
        let theme: Array<ITheme> = new Array<ITheme>();

        let theme1: ITheme = { key: "#1890ff", color: "#1890ff" };
        theme.push(theme1);

        let theme2: ITheme = { key: "#F5222D", color: "#F5222D" };
        let attr1:IThemeModifyVars = {attrName:"@primary-color",attrValue:"#F5222D"};
        // let attr2:IThemeModifyVars = {attrName:"@icon-color",attrValue:"#F5222D"};
        theme2.modifyVars = new Array<IThemeModifyVars>();
        // theme2.modifyVars.push(attr2);
        theme2.modifyVars.push(attr1);
        theme.push(theme2);

        let theme3: ITheme = { key: "#faad14", color: "#faad14" };
        let theme3Attr1:IThemeModifyVars = {attrName:"@primary-color",attrValue:"#faad14"};
        // let theme3Attr2:IThemeModifyVars = {attrName:"@icon-color",attrValue:"#faad14"};
        theme3.modifyVars = new Array<IThemeModifyVars>();
        theme3.modifyVars.push(theme3Attr1);
        // theme3.modifyVars.push(theme3Attr2);
        theme.push(theme3);

        return theme;
    }
}